package ClassWork.Work_03.Person;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Student student = new Student();
        Teacher teacher = new Teacher();
        Scanner scanner = new Scanner(System.in);

        System.out.println("Enter student name: ");
        String name1 = scanner.next();
        student.setName(name1);
        System.out.println("Enter student ID: ");
        int id1 = scanner.nextInt();
        student.setId(id1);
        System.out.println("Enter student age: ");
        int age1 = scanner.nextInt();
        student.setAge(age1);
        System.out.println("Enter student className: ");
        String className = scanner.next();
        student.setClassName(className);
        student.show();
        student.study();

        System.out.println("Enter teacher name: ");
        String name2 = scanner.next();
        teacher.setName(name2);
        System.out.println("Enter teacher ID: ");
        int id2 = scanner.nextInt();
        teacher.setId(id2);
        System.out.println("Enter teacher age: ");
        int age2 = scanner.nextInt();
        teacher.setAge(age2);
        System.out.println("Enter teacher salary: ");
        double salary = scanner.nextDouble();
        teacher.setSalary(salary);
        teacher.show();
        teacher.teach();
    }
}
